﻿using System;

namespace ThreeDContentPipeline
{
    public class SpriteFontWriter : ContentTypeWriter<SpriteFontContent>
    {
        public override void Write(SpriteFontContent value, ContentWriter writer)
        {
            writer.WriteArray(value.Rectangles);
            writer.Write(value.Image.Bytes);
        }

        public override string ContentReaderName()
        {
            return "ThreeDWorld.SpriteFontReader, ThreeDWorld";
        }
    }
}
